package com.hawthorn.admin.service.sysdealer;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Map;

/**
 * <p>todo 渠道商档案表 service 接口</p>
 * @author: zhouxin@expservice.com.cn
 * @created: 2022-07-08 3:38 PM
 * @version v1.0.1
 */
public interface SysDealerService {

  /**
   * 查询门店方法
   *
   * @param page
   * @param qc
   * @return
   */
  public IPage<Map<String, Object>> find(Page<Map<String, Object>> page, String qc);

  /**
   * 新增门店方法
   *
   * @param param
   * @return
   */
  public Map<String, Object> save(Map<String, Object> param);

  /**
   * 修改门店方法
   *
   * @param id
   * @param param
   * @return
   */
  public Map<String, Object> update(Long id, Map<String, Object> param);

  /**
   * 导出门店Excel方法
   *
   * @param response
   * @param fileName
   * @param params
   * @throws IOException
   */
  public void export(HttpServletResponse response, String fileName, Map<String, Object> params) throws IOException;

  /**
   * 修改门店状态方法
   *
   * @param id
   * @param status
   * @return
   */
  public Integer changeStatus(Long id, String status);
}
